<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .leftfloat {
            float: left;
        }

        .rightfloat {
            float: right;
        }

        .container {
            width: 970px;
            margin: 0 auto;
        }

        .clearfix::after {
            content: '';
            display: block;
            clear: both;
        }

        .a {
            width: 277px;
            height: 103px;
            background-color: red;
        }

        .b {
            width: 137px;
            height: 49px;
            margin: 0 0 8px 0;
            background-color: green;
        }

        .c {
            width: 679px;
            height: 46px;
            background-color: green;
        }

        .d {
            width: 310px;
            height: 435px;
            background-color: orange;
            margin-top: 10px;
        }

        .e {
            width: 450px;
            height: 240px;
            background-color: blue;
            margin: 10px 0 0 10px;
        }

        .f {
            width: 450px;
            height: 110px;
            background-color: blue;
            margin: 10px 0 0 10px;
        }

        .g {
            width: 450px;
            height: 30px;
            background-color: blue;
            margin: 10px 10px 0 10px;
        }

        .h {
            width: 190px;
            height: 400px;
            background-color: pink;
            margin: 10px 0;
        }

        .i {
            width: 650px;
            height: 25px;
            background-color: green;
            margin: 10px 0 10px 10px;
        }

        .j {
            width: 970px;
            height: 35px;
            background-color: rgb(2, 2, 54);
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="a leftfloat"></div>
        <div class="b rightfloat"></div>
        <div class="c rightfloat"></div>
    </div>
    <div class="clearfix container">
        <div class="d leftfloat"></div>
        <div class="e leftfloat"></div>
        <div class="h rightfloat"></div>
        <div class="f leftfloat"></div>
        <div class="g leftfloat"></div>
        <div class="i rightfloat"></div>
    </div>
    <div class="j container"></div>
</body>

</html>